package com.audition.thread.day01;

/**
 * @author xukang
 * @date 2021-03-08 18:00
 */
public class OneTask {
    public static void main(String[] args) {
//        Thread thread = new Thread(new Task());
//        thread.start();
        for (int i = 0; i < 10000; i++) {
            Thread t2 = new Thread(new Task());
            t2.start();
        }
    }

    static class Task implements Runnable{


        @Override
        public void run() {
            System.out.println("Thread Name: "+Thread.currentThread().getName());
        }
    }
}
